package com.burstly.lib.currency.secured;

import java.util.UUID;

public class SecuredRequestBuilder
{
  private static final String FIND_ACCOUNT_ACTION = "FindAccount";
  private static final String LINK_ACCOUNTS_ACTION = "LinkAccounts";
  private static final String RESET_BALANCE_ACTION = "ResetAccountBalance";

  @Deprecated
  private static final String SET_BALANCE_ACTION = "SetAccountBalance";
  private static final String UPDATE_BALANCE_ACTION = "UpdateAccountBalance";
  private final SecuredServiceRequest mRequest = new SecuredServiceRequest();

  private void setProprs(String paramString)
  {
    this.mRequest.setCommand(paramString);
    this.mRequest.setSecurityKey(UUID.randomUUID().toString());
  }

  public SecuredServiceRequest buildFindAccountRequest()
  {
    setProprs("FindAccount");
    return this.mRequest;
  }

  public SecuredServiceRequest buildLinkAccountRequest()
  {
    setProprs("LinkAccounts");
    return this.mRequest;
  }

  public SecuredServiceRequest buildResetAccountRequest()
  {
    setProprs("ResetAccountBalance");
    return this.mRequest;
  }

  @Deprecated
  public SecuredServiceRequest buildSetAccountRequest()
  {
    setProprs("SetAccountBalance");
    return this.mRequest;
  }

  @Deprecated
  public SecuredServiceRequest buildUpdateAccountRequest()
  {
    setProprs("UpdateAccountBalance");
    return this.mRequest;
  }

  public SecuredRequestBuilder setData(Object paramObject)
  {
    this.mRequest.setData(paramObject);
    return this;
  }

  public SecuredRequestBuilder setRawResponse()
  {
    this.mRequest.setRawResponse(1);
    return this;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.currency.secured.SecuredRequestBuilder
 * JD-Core Version:    0.6.2
 */